//
//  CommentsCell.m
//  myhuibao
//
//  Created by lijun on 13-3-20.
//  Copyright (c) 2013年 myhuibao. All rights reserved.
//

#import "CommentsCell.h"

@implementation CommentsCell
@synthesize lbname;
@synthesize lbdealDate;
@synthesize lbdealValue;
@synthesize lbpayType;
@synthesize merchantName;
@synthesize payType;
@synthesize dealDate;
@synthesize dealValue;
@synthesize detailTextLabel;
@synthesize lbdate;
@synthesize lbmerchantname;
@synthesize lbpay;
@synthesize lbvalue;
@synthesize addDate;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}
-(void) setDealDate:(NSString *)dealdate{
    if(![dealdate isEqualToString:dealDate]){
        NSString *sdate=[dealdate  stringByReplacingOccurrencesOfString:@"T" withString:@" "];
        self.lbdealDate.text=sdate;
    }
}
-(void) setDealValue:(NSNumber *)d{
    if (d!=dealValue) {
        dealValue=[d copy];
        NSString *sdealValue=[NSString stringWithFormat:@"%.1f元",[dealValue floatValue]];
        self.lbdealValue.text=sdealValue;
    }
}
-(void) setAddDate:(NSString *)a{
    if (![a isEqualToString:addDate]) {
        NSString *sdate=[a  stringByReplacingOccurrencesOfString:@"T" withString:@" "];
        self.lbdealValue.text=sdate;
    }
}
-(void) setMerchantName:(NSString *)m{
    if (![m isEqualToString:merchantName]) {
        merchantName=[m copy];
        self.lbname.text=merchantName;
    }
}
-(void) setPayType:(NSString *)p{
    if(![p  isEqualToString:payType]){
        payType=[p copy];
        self.lbpayType.text=payType;
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated]; 
}
@end
